import { defineStore } from 'pinia'

const routesListPiniaStore = defineStore('routesList', {
    state: () => ({
        routesList: []
    }),
    actions: {
        setRoutesList(data) {
            this.routesList = data
        },
    },
    // persist: {
    //     enabled: true,
    //     strategies: [
    //         {
    //             key: 'routesList',
    //             storage: localStorage,
    //             path:[] //可以选择保存的字段  其余的不保存
    //         }
    //     ]
    // }
})

export default routesListPiniaStore
